package cn.jyc.ssm03.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Bus_rents {
    private String rentid;
    private Double price;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date begindate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date returndate;
    private Integer rentflag;
    private String identity;
    private String carnumber;
    private String opername;

    public Bus_rents() {
    }

    public Bus_rents(String rentid) {
        this.rentid = rentid;
    }

    public Bus_rents(String rentid, Integer rentflag) {
        this.rentid = rentid;
        this.rentflag = rentflag;
    }

    public Bus_rents(String rentid, Double price, Date begindate, Date returndate, Integer rentflag, String identity, String carnumber, String opername) {
        this.rentid = rentid;
        this.price = price;
        this.begindate = begindate;
        this.returndate = returndate;
        this.rentflag = rentflag;
        this.identity = identity;
        this.carnumber = carnumber;
        this.opername = opername;
    }

    @Override
    public String toString() {
        return "Bus_rents{" +
                "rentid='" + rentid + '\'' +
                ", price=" + price +
                ", begindate=" + begindate +
                ", returndate=" + returndate +
                ", rentflag=" + rentflag +
                ", identity='" + identity + '\'' +
                ", carnumber='" + carnumber + '\'' +
                ", opername='" + opername + '\'' +
                '}';
    }
    public String getRentid() {
        return rentid;
    }

    public void setRentid(String rentid) {
        this.rentid = rentid;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getBegindate() {
        return begindate;
    }

    public void setBegindate(Date begindate) {
        this.begindate = begindate;
    }

    public Date getReturndate() {
        return returndate;
    }

    public void setReturndate(Date returndate) {
        this.returndate = returndate;
    }

    public Integer getRentflag() {
        return rentflag;
    }

    public void setRentflag(Integer rentflag) {
        this.rentflag = rentflag;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getCarnumber() {
        return carnumber;
    }

    public void setCarnumber(String carnumber) {
        this.carnumber = carnumber;
    }

    public String getOpername() {
        return opername;
    }

    public void setOpername(String opername) {
        this.opername = opername;
    }
}